<ul id="slider1">
    <?php foreach ($advs as $adv):
        $url_path = $adv->url_path == "#Click vào đây để thay đổi đường dẫn ảnh" ? "#" : $adv->url_path;
        $title = ($adv->title == NULL || $adv->title == 'Title') ? '' : $adv->title;
    ?>
        <li><img src="/images/advs/<?php echo $adv->image_name; ?>" alt="<?php echo $title; ?>" title="<?php echo $title;?>"/></li>
    <?php endforeach; ?>
</ul>


